<!--<?php
print <<<EOT
-->

<script src="./css/edit.js"></script>
<script>
<!--

function validate(form) {
    
	if(form.username.value == "" || form.password.value == "") {
		showMsg('msg_area', 'Please enter your username and password to login. ');
		form.username.focus();
		return false;
	}

	return true;
}

//-->
</script>
     <div class="main_R">  
<div class="l-tb">
<div class="tb-top-logo">
           <img src="css/images/about_jansen_furniture.jpg" alt="" />
            </div>
              <div class="right-pad">                 
                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                          <tr>
                            <td width="383" align="left" valign="top" class="tb-left-content">    
                            <div style="padding:0; margin:0; clear:both;height:17px;"></div>                        
                            <form method="post" name="form1" action="login.php" onSubmit="return validate(this)">                            
		                    <table  width="100%" border="0" cellpadding="5" cellspacing="0" class="loginPage" style="margin-left:20px;">		                     
		                        <tr>
		                            <td align="right" height="28">Username</td>
		                            <td width="10" align="center">:</td>
		                            <td align="left"><input type="text" name="username" class="form" size="30" value="$loginname"  ></td>
		                        </tr>
		                        <tr>
		                            <td align="right" height="28">Password</td>
		                            <td align="center" >:</td>
		                            <td align="left"><input type="password"  name="password" class="form" size="30" value="$loginpassword" ></td>
		                        </tr>
		                        <tr>
		                        <td height="7">&nbsp</td>
		                        </tr>
		                        <tr>
		                            <td></td>
		                             <td></td>
		                             <td height="22">
		                                <input type="hidden" name="action" value="login">
		                                <input type="hidden" name="preUrl" value="{$preUrl}">
		                                <input type="image" src="css/images/btn_login.jpg" alt="Login" name="jf_button_login"  border="0" id="jf_button_login">
		                            </td>
		                        </tr>
		                        <tr>
		                        <td height="7">&nbsp</td>
		                        </tr>
		                        <tr>
		                         <td></td>
		                          <td></td>
		                        <td ><span id="msg_area">$alert_message</span></td></tr>		                  
		                        <tr>
		                            <td></td>
		                            <td></td>
		                            <td >
		                                <a href="login_reminder.php" onMouseOver="MM_swapImage('jf_button_forgotten_login','','./images/button/jf_button_forgotten_login-over.gif',1)" onMouseOut="MM_swapImgRestore()"><img src="./images/button/jf_button_forgotten_login.gif" alt="Forgot your Username or Password?" name="jf_button_forgotten_login" width="176" height="15" border="0" id="jf_button_forgotten_login"></a>
		                               
		                            </td>
		                        </tr> 
		                        <tr>
		                            <td></td>
		                            <td></td>
		                            <td  align="left">
		                              <input type="checkbox" name="remember_account" $checked  id="Checkbox1" class="Checkbox1-r"  ><label for="foget">&nbsp;Remember my password&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label>
		                            </td>
		                        </tr>
		                        
		                        <tr>
		                        <td height="7">&nbsp</td>
		                        </tr>
		                    </table>
		                    </form>  
                            Please log in with your username and password.<br><br>                    
		                    If you are interested in becoming a jans2en furniture dealer, <br>click <a href="register.php">here</a>. <br />
		                    
		                     
                           
                            </td>
                        
                          </tr>                         
                        </table>
                  
              </div>               
           </div>
          
           <div class="r-tb">
            <div class="rightimgwrap">
            <img src="{$img}" alt="Image of woman and desk" name="jf_content_images_login"  class="picture" id="jf_content_images_login">
            </div>
           </div>
       </div>
           
 	</div>
	
<script>
<!--
form1.username.focus();
//-->
</script>
        
<!--
EOT;
?>-->